import 'package:flutter/material.dart';
import 'package:flutter_demo/demo/bloc/counter_bloc_demo.dart';

class BlocDemo extends StatefulWidget {
  const BlocDemo({super.key});

  @override
  State<BlocDemo> createState() => _BlocDemoState();
}

class _BlocDemoState extends State<BlocDemo> {
  @override
  Widget build(BuildContext context) {
    return CounterProvider(child: Scaffold(
      appBar: AppBar(
        title: Text('BlocDemo'),
        elevation: 0.0,
      ),
      body: CounterHome(),
      floatingActionButton: CounterActionButton(),
    ), bloc: CounterBloc());
  }
}